package de.moc.client;

import java.util.Vector;

import de.moc.shared.*;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

import de.moc.shared.SurveyException;

@RemoteServiceRelativePath("surveyService")
public interface SurveyService extends RemoteService {

	String newSurvey(Survey survey) throws SurveyException;

	Survey getResult(String id) throws SurveyException;

	boolean deleteSurvey(String id) throws SurveyException;
	
	Survey resetSurvey(String id) throws SurveyException;
	
	boolean endActiveSurvey() throws SurveyException;
	
	Survey getActiveSurvey() throws SurveyException;
	
	String addExampleSurvey() throws SurveyException;
	
	Vector<Survey> getAllSurveys() throws SurveyException;

}